﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content.Pipeline;
using System.IO;

namespace ThouShaltNotBrick.PipelineExtension
{
    [ContentImporter(".bricktypes", DefaultProcessor = "BrickTypesContentProcessor", DisplayName = "BrickTypes Content Importer")]
    public sealed class BrickTypesContentImporter : ContentImporter<BrickTypesSource>
    {
        #region Overriden Methods
        public override BrickTypesSource Import(string pFilename, ContentImporterContext pContext)
        {
            string source = File.ReadAllText(pFilename);
            return new BrickTypesSource(source);
        }
        #endregion
    }
}